<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor"%>   
<%@ taglib uri="http://cksource.com/ckfinder" prefix="ckfinder"%>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<script type="text/javascript">
			function test() {
				//JavaScript判空，如果确定
				var editor_data = CKEDITOR.instances.content.getData();
				if(editor_data==null||editor_data==""){
					alert("数据为空不能提交");
				}else{
					if(confirm(editor_data)){
					document.myform.submit();
					}
				}		
			}
		</script>
		<title>ckeditor富文本测试-- by jCuckoo</title>
	</head>
	<body>
		<form action="../doTest.jsp" name="myform" method="post" style="width: 700px;height: 900px">
		     <ckfinder:setupCKEditor editor="content" basePath="ckfinder/" />   
		     <ckeditor:editor basePath="ckeditor/"    
		            editor="content" value="CKEditor Test......(此处的内容会在编辑器中显示)--by jCuckoo " />   
		      <input type="button" onclick="test()" value="提交数据"/>
	     </form>
	</body>
</html>
